projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e33559
)
tegra: i2c: Initialise I2C on Nvidia boards
author
Simon Glass
<
[email protected]
>
Fri, 3 Feb 2012 15:13:57 +0000
(15:13 +0000)
committer
Albert ARIBAUD
<
[email protected]
>
Thu, 29 Mar 2012 06:12:50 +0000
(08:12 +0200)
This enables I2C on all Nvidia boards including Seaboard and
Harmony.
Signed-off-by: Simon Glass <
[email protected]
>
Acked-by: Heiko Schocher <
[email protected]
>
Signed-off-by: Tom Warren <
[email protected]
>
board/nvidia/common/board.c
patch
|
blob
|
history
diff --git
a/board/nvidia/common/board.c
b/board/nvidia/common/board.c
index 72d863002401837c9c25ad1cc68eea89ee91a251..85dd359ec952f9bf108a1c1ef20cdbaab89ee50c 100644
(file)
--- a/
board/nvidia/common/board.c
+++ b/
board/nvidia/common/board.c
@@
-34,6
+34,7
@@
#include <asm/arch/uart.h>
#include <spi.h>
#include <asm/arch/usb.h>
+#include <i2c.h>
#include "board.h"
DECLARE_GLOBAL_DATA_PTR;
@@
-75,6
+76,12
@@
int board_init(void)
#endif
/* boot param addr */
gd->bd->bi_boot_params = (NV_PA_SDRAM_BASE + 0x100);
+#ifdef CONFIG_TEGRA_I2C
+#ifndef CONFIG_SYS_I2C_INIT_BOARD
+#error "You must define CONFIG_SYS_I2C_INIT_BOARD to use i2c on Nvidia boards"
+#endif
+ i2c_init_board();
+#endif
#ifdef CONFIG_USB_EHCI_TEGRA
pin_mux_usb();